package com.dyw.ycgovfinance.mvp.open;

import com.dyw.ycgovfinance.bean.NewsKindBean;
import com.dyw.ycgovfinance.bean.NewsListBean;
import com.dyw.ycgovfinance.mvp.base.BasePresenter;
import com.dyw.ycgovfinance.mvp.base.BaseView;
import com.dyw.ycgovfinance.mvp.news.newshome.NewsHomeContract;

import java.util.HashMap;
import java.util.List;

/**
 * Created by clboys on 2017/6/28.
 */

public class OpenMainContract {

    public interface View extends BaseView<Presenter> {

        void getOpenNewsKind();

        void onGetOpenNewsKindSuccess( List<NewsKindBean> commonNewsKinds,NewsKindBean govYsNewsKind,
                                       NewsKindBean govJsNewsKind,
                                       NewsKindBean departYsNewsKind,
                                       NewsKindBean departJsNewsKind);

        void onGetOpenNewsKindError(String tip);

        /*void getOpenNewsList(String newsKindName,String newsKindParentTag,String newsKindSonTag);

        void onGetOpenNewsListSuccess(String newsKindName, List<NewsListBean> newsList);

        void onGetOpenNewsListError(String newsKindName,String tip);*/


        void getAllNewsList();

        void onGetAllNewsListSuccess(HashMap<String,List<NewsListBean>> allNewsMap);

        void onGetAllNewsListError(String tip);

    }

    public interface Presenter extends BasePresenter
    {
        void getOpenNewsKind();

        //void getOpenNewsList(String pageIndex,String pageSize,String newsKindName,String newsKindParentTag,String newsKindSonTag);

        void  getAllNewsList(String defaultPageIndex,String defaultPageSize,List<NewsKindBean> newsKindList);
    }
}
